package com.ming.study.utils;

import java.util.Date;

public class Utils {
    public static boolean isUserVaild(long createTime) {
        long serviceTime = new Date().getTime() - createTime;
        // 登陆时长不超过12小时
        return (serviceTime / (60 * 60 * 1000) < 12);
    }
}
